package com.ocom.human.exception;

public class ValidationException extends RuntimeException  {

    private int code;

    public ValidationException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ValidationException(String message) {
        super(message);
        this.code = 400;
    }

    public int getCode() {
        return code;
    }
}
